package cn.yunhe.hom4;

public class LaoDriver {
    private String name;
    private int age;

    public LaoDriver(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public LaoDriver() {
    }

    public void KaiChe(JiaoChe jiaoChe) {
        System.out.println("啦啦啦！我是"+name+"我会开" + jiaoChe.getName());
    }

    public void KaiChe(KeChe keChe) {
        System.out.println("啦啦啦！我是"+name+"我会开" + keChe.getName());
    }

    public void KaiChe(HuoChe huoChe) {
        System.out.println("啦啦啦！我是"+name+"我会开" + huoChe.getName());
    }
}
